<%let imgUrl = window.location.host;let hd = imgUrl.split('.njdtwise')[0];imgUrl
= hd == 'www' ? 'http://www.njdtwise.com/images/' :
'http://dev.njdtwise.com/images/';%>
<div class="news">
  <div class="news-table" id="gridContent">
    <div class="news-table-head">
      <div class="news-table-cell" style="width: 20%">时间</div>
      <div class="news-table-cell" style="width: 10%">联系人</div>
      <div class="news-table-cell" style="width: 10%">联系电话</div>
      <div class="news-table-cell" style="width: 50%">意见内容</div>
      <div class="news-table-cell" style="width: 10%">图片</div>
    </div>
    <div class="news-table-body">
      <%$.each(message,function(index,el){%>
      <div class="news-table-row">
        <div class="news-table-cell" style="width: 20%">
          <%- el.adviceTime%>
        </div>
        <div class="news-table-cell" style="width: 10%">
          <%- el.linkPerson%>
        </div>
        <div class="news-table-cell" style="width: 10%"><%- el.linkPhone%></div>
        <div class="news-table-cell" style="width: 50%">
          <%- el.adviceContent%>
        </div>
        <div class="news-table-cell" style="width: 10%">
          <%let _url=imgUrl+el.adviceImage;let display = el.adviceImage ?
          'block' : 'none';%>
          <img
            src="<%- _url%>"
            style="width: 0.3rem; height: 0.3rem; display: <%- display%>"
            onclick="showImg('<%- _url%>')"
          />
        </div>
      </div>
      <%})%>
    </div>
  </div>
  <div onclick="showScaleImg()" class="showScaleImg">
    <img class="showImgbox" src="" alt="" />
  </div>
  <div id="pagination" class="news-table-page"></div>
</div>
